package com.JZ.QM.service.impl;

import com.JZ.QM.service.TradeRecordService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.JZ.QM.common.utils.PageUtils;
import com.JZ.QM.common.utils.Query;

import com.JZ.QM.common.dao.TradeRecordDao;
import com.JZ.QM.common.entity.TradeRecordEntity;

import javax.annotation.Resource;


@Service
public class TradeRecordServiceImpl extends ServiceImpl<TradeRecordDao, TradeRecordEntity> implements TradeRecordService {

    @Resource
    TradeRecordDao tradeRecordDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) throws Exception {
        IPage<TradeRecordEntity> page = this.page(
                new Query<TradeRecordEntity>().getPage(params),
                new QueryWrapper<TradeRecordEntity>()
        );

        return new PageUtils(page);
    }
}